package com.socket;

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

public class TCPSocketClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Socket s=null;
		try {
			s=new Socket("localhost", 1234);
			DataOutputStream ds=new DataOutputStream(s.getOutputStream());
			ds.writeLong(10000);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}
